package com.douyang.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.douyang.mapper.VideoInfoMapper;
import com.douyang.pojo.VideoInfo;
import com.douyang.service.VideoInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaoma
 * @since 2025-02-27
 */
@Service
public class VideoInfoServiceImpl extends ServiceImpl<VideoInfoMapper, VideoInfo> implements VideoInfoService {

    @Override
    public Boolean checkVideoExist(String videoMd5) {
        return lambdaQuery().eq(VideoInfo::getVideoMd5, videoMd5).exists();
    }
}
